package com.ylaihui.service;

import com.ylaihui.pojo.Cart;
import com.ylaihui.pojo.Order;
import com.ylaihui.pojo.OrderItem;

import java.util.List;

/**
 * @author lisimmy www.ylaihui.com
 * @create 2021-08-03
 */
public interface OrderService {
    public String createOrder(Cart cart,Integer userId);
    public List<Order> showAllOrders();
    public Order queryOrderByOrderId(String orderId);

    void sendOrder(String orderId);
    public List<OrderItem> showOrderDetails(String orderId);
    public List<Order> showUserOrders(Integer userId);

}
